/// createBy : "admin"
/// createTime : "2023-07-13 14:41:44"
/// updateBy : "admin"
/// updateTime : "2023-07-13 14:46:32"
/// remark : null
/// orgId : 157
/// parentId : 110
/// ancestors : "0,110"
/// orgName : "22222222222222222225"
/// orderNum : 0
/// leader : null
/// phone : null
/// email : null
/// status : "0"
/// delFlag : "0"
/// parentName : null
/// type : 1
/// types : null
/// createByName : "系统管理员"

class ServiceProviderModel {
  ServiceProviderModel({
      String? createBy, 
      String? createTime, 
      String? updateBy, 
      String? updateTime, 
      dynamic remark, 
      num? orgId, 
      num? parentId, 
      String? ancestors, 
      String? orgName, 
      num? orderNum, 
      dynamic leader, 
      dynamic phone, 
      dynamic email, 
      String? status, 
      String? delFlag, 
      dynamic parentName, 
      num? type, 
      dynamic types, 
      String? createByName,}){
    _createBy = createBy;
    _createTime = createTime;
    _updateBy = updateBy;
    _updateTime = updateTime;
    _remark = remark;
    _orgId = orgId;
    _parentId = parentId;
    _ancestors = ancestors;
    _orgName = orgName;
    _orderNum = orderNum;
    _leader = leader;
    _phone = phone;
    _email = email;
    _status = status;
    _delFlag = delFlag;
    _parentName = parentName;
    _type = type;
    _types = types;
    _createByName = createByName;
}

  ServiceProviderModel.fromJson(dynamic json) {
    _createBy = json['createBy'];
    _createTime = json['createTime'];
    _updateBy = json['updateBy'];
    _updateTime = json['updateTime'];
    _remark = json['remark'];
    _orgId = json['orgId'];
    _parentId = json['parentId'];
    _ancestors = json['ancestors'];
    _orgName = json['orgName'];
    _orderNum = json['orderNum'];
    _leader = json['leader'];
    _phone = json['phone'];
    _email = json['email'];
    _status = json['status'];
    _delFlag = json['delFlag'];
    _parentName = json['parentName'];
    _type = json['type'];
    _types = json['types'];
    _createByName = json['createByName'];
  }
  String? _createBy;
  String? _createTime;
  String? _updateBy;
  String? _updateTime;
  dynamic _remark;
  num? _orgId;
  num? _parentId;
  String? _ancestors;
  String? _orgName;
  num? _orderNum;
  dynamic _leader;
  dynamic _phone;
  dynamic _email;
  String? _status;
  String? _delFlag;
  dynamic _parentName;
  num? _type;
  dynamic _types;
  String? _createByName;
  bool?      _isSelected;  // 自定义,是否被选中
  bool?      get isSelected => _isSelected;  //是否被选中
ServiceProviderModel copyWith({  String? createBy,
  String? createTime,
  String? updateBy,
  String? updateTime,
  dynamic remark,
  num? orgId,
  num? parentId,
  String? ancestors,
  String? orgName,
  num? orderNum,
  dynamic leader,
  dynamic phone,
  dynamic email,
  String? status,
  String? delFlag,
  dynamic parentName,
  num? type,
  dynamic types,
  String? createByName,

}) => ServiceProviderModel(  createBy: createBy ?? _createBy,
  createTime: createTime ?? _createTime,
  updateBy: updateBy ?? _updateBy,
  updateTime: updateTime ?? _updateTime,
  remark: remark ?? _remark,
  orgId: orgId ?? _orgId,
  parentId: parentId ?? _parentId,
  ancestors: ancestors ?? _ancestors,
  orgName: orgName ?? _orgName,
  orderNum: orderNum ?? _orderNum,
  leader: leader ?? _leader,
  phone: phone ?? _phone,
  email: email ?? _email,
  status: status ?? _status,
  delFlag: delFlag ?? _delFlag,
  parentName: parentName ?? _parentName,
  type: type ?? _type,
  types: types ?? _types,
  createByName: createByName ?? _createByName,
);
  String? get createBy => _createBy;
  String? get createTime => _createTime;
  String? get updateBy => _updateBy;
  String? get updateTime => _updateTime;
  dynamic get remark => _remark;
  num? get orgId => _orgId;
  num? get parentId => _parentId;
  String? get ancestors => _ancestors;
  String? get orgName => _orgName;
  num? get orderNum => _orderNum;
  dynamic get leader => _leader;
  dynamic get phone => _phone;
  dynamic get email => _email;
  String? get status => _status;
  String? get delFlag => _delFlag;
  dynamic get parentName => _parentName;
  num? get type => _type;
  dynamic get types => _types;
  String? get createByName => _createByName;
  set isSelected(value) {
    _isSelected = value;
  }
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['createBy'] = _createBy;
    map['createTime'] = _createTime;
    map['updateBy'] = _updateBy;
    map['updateTime'] = _updateTime;
    map['remark'] = _remark;
    map['orgId'] = _orgId;
    map['parentId'] = _parentId;
    map['ancestors'] = _ancestors;
    map['orgName'] = _orgName;
    map['orderNum'] = _orderNum;
    map['leader'] = _leader;
    map['phone'] = _phone;
    map['email'] = _email;
    map['status'] = _status;
    map['delFlag'] = _delFlag;
    map['parentName'] = _parentName;
    map['type'] = _type;
    map['types'] = _types;
    map['createByName'] = _createByName;
    return map;
  }

}